﻿// =================================================================== 
// 项目说明
//====================================================================
// 文件： ERP_BusinessLog.cs
// 创建时间：2017/1/7
// 负责人：
// ===================================================================
using System;

//注意：该文件自动生成，一般请不要手工修改。

namespace CRMMis.Model
{
	/// <summary>
	///业务记录表(ERP_BusinessLog)数据实体
	/// </summary>
	[Serializable]
	public class ERP_BusinessLog
	{
		#region 变量定义
		
		///<summary>
		///记录号
		///</summary>
		private int _logId;
		
		///<summary>
		///1:入库，   2:出库，   3:客户退货，   4:退货，   5:借出，   6:借还，   7:借售，   8:售还
		///</summary>
		private int _actionId;
		
		///<summary>
		///操作名称
		///</summary>
		private string _actionName = String.Empty;
		
		///<summary>
		///操作员
		///</summary>
		private string _actionUser = String.Empty;
		
		///<summary>
		///库房
		///</summary>
		private string _storeRoom_Id = String.Empty;
		
		///<summary>
		///操作日期
		///</summary>
		private string _actionDate = String.Empty;
		
		///<summary>
		///商品详情ID
		///</summary>
		private int _detailId;
		
		///<summary>
		///商品名称
		///</summary>
		private string _cargoName = String.Empty;
		
		///<summary>
		///规格
		///</summary>
		private string _spec = String.Empty;
		
		///<summary>
		///产地
		///</summary>
		private string _area = String.Empty;
		
		///<summary>
		///型号
		///</summary>
		private string _version = String.Empty;
		
		///<summary>
		///生产厂家
		///</summary>
		private string _produceName = String.Empty;
		
		///<summary>
		///批号
		///</summary>
		private string _batchNo = String.Empty;
		
		///<summary>
		///供应价格
		///</summary>
		private decimal _supplyPrice;
		
		///<summary>
		///售出价格
		///</summary>
		private decimal _salePrice;
		
		///<summary>
		///原有数量
		///</summary>
		private int _curCount;
		
		///<summary>
		///变更数量
		///</summary>
		private int _count;
		
		///<summary>
		///个人库房
		///</summary>
		private string _perStoreRoom = String.Empty;
		
		///<summary>
		///客户
		///</summary>
		private int _customId;
		
		///<summary>
		///状态
		///</summary>
		private int _state;
		
		///<summary>
		///
		///</summary>
		private string _busniessNo = String.Empty;
		#endregion
		
		#region 构造函数

		///<summary>
		///业务记录表的构造函数，默认值通过数据库的default取得
		///</summary>
		public ERP_BusinessLog()
		{
 
		}
		///<summary>
		///业务记录表
		///</summary>
		public ERP_BusinessLog
		(
			int logId,
			int actionId,
			string actionName,
			string actionUser,
			string storeRoom_Id,
			string actionDate,
			int detailId,
			string cargoName,
			string spec,
			string area,
			string version,
			string produceName,
			string batchNo,
			decimal supplyPrice,
			decimal salePrice,
			int curCount,
			int count,
			string perStoreRoom,
			int customId,
			int state,
			string busniessNo
		)
		{
			_logId        = logId;
			_actionId     = actionId;
			_actionName   = actionName;
			_actionUser   = actionUser;
			_storeRoom_Id = storeRoom_Id;
			_actionDate   = actionDate;
			_detailId     = detailId;
			_cargoName    = cargoName;
			_spec         = spec;
			_area         = area;
			_version      = version;
			_produceName  = produceName;
			_batchNo      = batchNo;
			_supplyPrice  = supplyPrice;
			_salePrice    = salePrice;
			_curCount     = curCount;
			_count        = count;
			_perStoreRoom = perStoreRoom;
			_customId     = customId;
			_state        = state;
			_busniessNo   = busniessNo;
			
		}
		
		

		#endregion
		
		#region 公共属性

		
		
		///<summary>
		///记录号
		///</summary>
		public int LogId
		{
			get {return _logId;}
			set {_logId = value;}
		}

		
		///<summary>
		///1:入库，   2:出库，   3:客户退货，   4:退货，   5:借出，   6:借还，   7:借售，   8:售还
		///</summary>
		public int ActionId
		{
			get {return _actionId;}
			set {_actionId = value;}
		}

		
		///<summary>
		///操作名称
		///</summary>
		public string ActionName
		{
			get {return _actionName;}
			set {_actionName = value;}
		}

		
		///<summary>
		///操作员
		///</summary>
		public string ActionUser
		{
			get {return _actionUser;}
			set {_actionUser = value;}
		}

		
		///<summary>
		///库房
		///</summary>
		public string StoreRoom_Id
		{
			get {return _storeRoom_Id;}
			set {_storeRoom_Id = value;}
		}

		
		///<summary>
		///操作日期
		///</summary>
		public string ActionDate
		{
			get {return _actionDate;}
			set {_actionDate = value;}
		}

		
		///<summary>
		///商品详情ID
		///</summary>
		public int DetailId
		{
			get {return _detailId;}
			set {_detailId = value;}
		}

		
		///<summary>
		///商品名称
		///</summary>
		public string CargoName
		{
			get {return _cargoName;}
			set {_cargoName = value;}
		}

		
		///<summary>
		///规格
		///</summary>
		public string Spec
		{
			get {return _spec;}
			set {_spec = value;}
		}

		
		///<summary>
		///产地
		///</summary>
		public string Area
		{
			get {return _area;}
			set {_area = value;}
		}

		
		///<summary>
		///型号
		///</summary>
		public string Version
		{
			get {return _version;}
			set {_version = value;}
		}

		
		///<summary>
		///生产厂家
		///</summary>
		public string ProduceName
		{
			get {return _produceName;}
			set {_produceName = value;}
		}

		
		///<summary>
		///批号
		///</summary>
		public string BatchNo
		{
			get {return _batchNo;}
			set {_batchNo = value;}
		}

		
		///<summary>
		///供应价格
		///</summary>
		public decimal SupplyPrice
		{
			get {return _supplyPrice;}
			set {_supplyPrice = value;}
		}

		
		///<summary>
		///售出价格
		///</summary>
		public decimal SalePrice
		{
			get {return _salePrice;}
			set {_salePrice = value;}
		}

		
		///<summary>
		///原有数量
		///</summary>
		public int CurCount
		{
			get {return _curCount;}
			set {_curCount = value;}
		}

		
		///<summary>
		///变更数量
		///</summary>
		public int Count
		{
			get {return _count;}
			set {_count = value;}
		}

		
		///<summary>
		///个人库房
		///</summary>
		public string PerStoreRoom
		{
			get {return _perStoreRoom;}
			set {_perStoreRoom = value;}
		}

		
		///<summary>
		///客户
		///</summary>
		public int CustomId
		{
			get {return _customId;}
			set {_customId = value;}
		}

		
		///<summary>
		///状态
		///</summary>
		public int State
		{
			get {return _state;}
			set {_state = value;}
		}

		
		///<summary>
		///
		///</summary>
		public string BusniessNo
		{
			get {return _busniessNo;}
			set {_busniessNo = value;}
		}
	
		#endregion
		
	}
}